package com.snap.vseries.chart;

import com.github.mikephil.charting.formatter.ValueFormatter;

public class TimeFormatter extends ValueFormatter {

    public TimeFormatter() {
    }

    @Override
    public String getFormattedValue(float value) {
        int sec = (int) (value % 60);
        int min = (int) (value / 60);
        if (min == 0) {
            return sec + "\"";
        } else {
            return min + "\'" + sec + "\"";
        }
    }
}
